package com.jt9003.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Register {
    private Integer rId;

    private String registrationNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date rDate;

    private Integer rVisit;

    private Integer rDepartment;

    private Integer rPay;

    private String rRemarks;

    private Integer rDiagnosisNum;

    private Integer pId;

    private String doctorName;

    private String cashierName;

    private Integer pDiagnosis;

    //患者对象
    private Patient patient1;

    //诊室，字符串
    private String rDepartment2;

    //初复诊，字符串
    private String rVisit2;

    //患者姓名，年龄，手机号，性别
    private String pName2;
    private String pAge2;
    private String pPhone2;
    private String pGender2;

    public String getpGender2() {
        return pGender2;
    }

    public void setpGender2(String pGender2) {
        this.pGender2 = pGender2;
    }

    public String getpName2() {
        return pName2;
    }

    public void setpName2(String pName2) {
        this.pName2 = pName2;
    }

    public String getpAge2() {
        return pAge2;
    }

    public void setpAge2(String pAge2) {
        this.pAge2 = pAge2;
    }

    public String getpPhone2() {
        return pPhone2;
    }

    public void setpPhone2(String pPhone2) {
        this.pPhone2 = pPhone2;
    }

    public String getrDepartment2() {
        return rDepartment2;
    }

    public void setrDepartment2(String rDepartment2) {
        this.rDepartment2 = rDepartment2;
    }

    public String getrVisit2() {
        return rVisit2;
    }

    public void setrVisit2(String rVisit2) {
        this.rVisit2 = rVisit2;
    }

    public Patient getPatient1() {
        return patient1;
    }

    public void setPatient1(Patient patient1) {
        this.patient1 = patient1;
    }

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public String getRegistrationNumber() {
        return registrationNumber;
    }

    public void setRegistrationNumber(String registrationNumber) {
        this.registrationNumber = registrationNumber == null ? null : registrationNumber.trim();
    }

    public Date getrDate() {
        return rDate;
    }

    public void setrDate(Date rDate) {
        this.rDate = rDate;
    }

    public Integer getrVisit() {
        return rVisit;
    }

    public void setrVisit(Integer rVisit) {
        this.rVisit = rVisit;
    }

    public Integer getrDepartment() {
        return rDepartment;
    }

    public void setrDepartment(Integer rDepartment) {
        this.rDepartment = rDepartment;
    }

    public Integer getrPay() {
        return rPay;
    }

    public void setrPay(Integer rPay) {
        this.rPay = rPay;
    }

    public String getrRemarks() {
        return rRemarks;
    }

    public void setrRemarks(String rRemarks) {
        this.rRemarks = rRemarks == null ? null : rRemarks.trim();
    }

    public Integer getrDiagnosisNum() {
        return rDiagnosisNum;
    }

    public void setrDiagnosisNum(Integer rDiagnosisNum) {
        this.rDiagnosisNum = rDiagnosisNum;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName == null ? null : doctorName.trim();
    }

    public String getCashierName() {
        return cashierName;
    }

    public void setCashierName(String cashierName) {
        this.cashierName = cashierName == null ? null : cashierName.trim();
    }

    public Integer getpDiagnosis() {
        return pDiagnosis;
    }

    public void setpDiagnosis(Integer pDiagnosis) {
        this.pDiagnosis = pDiagnosis;
    }
}